home *** CD-ROM | disk | FTP | other *** search
- Path: unsw.edu.au!usenet
- From: lester@cse.unsw.edu.au (Lester Gock-Young)
- Newsgroups: comp.unix.amiga
- Subject: dynamic linking under Linux/68k
- Date: 9 Apr 1996 14:17:25 GMT
- Organization: ABC Information Technology (Communications)
- Message-ID: <4kdrhl$346@mirv.unsw.edu.au>
- Reply-To: lester@cse.unsw.edu.au (Lester Gock-Young)
- NNTP-Posting-Host: modem.circus.cse.unsw.edu.au
-
- Hi,
-
- I've been trying to link my programs against dynamic link libraries under
- Linux/68k, and have been getting some wierd behaviour from ld.
-
- ld seems to insist on linking my hello world program against libc.a rather
- than libc.so.5, causing it to be 50-odd K stripped. In contrast, the same
- piece of code is 2.5K stripped under Linux/i386!! Intel code is not *that*
- much more efficient that Motorola code, surely ...
-
- To compile, I did:
-
- gcc -o hello hello.c
-
- I then ran
-
- strings -a hello | grep lib
-
- and found no references to libc.so.5 or any other shared library. The
- Linux/i386 code had a reference to libc.so.5.
-
- What's going on?! I'm using binutils-2.6, gcc-2.7.2, ld.so-1.7.12,
- libc-5.0.9 installed over watchtower-fs.
-
- thanks for any help,
-
- Lester
- --
- Lester Gock-Young
- ABC Information Technology (Communications), Sydney, Australia
- (loitering at lester@cse.unsw.edu.au http://www.cse.unsw.edu.au/~lester/)
-